Base Message List Component
Types
Functions
Link copied to clipboard
Animates the message on the message list.
Link copied to clipboard
Returns the recycler view used in the list component by default.
Link copied to clipboard
Returns the view created by onCreateView.
Link copied to clipboard
Link copied to clipboard
open fun moveToFocusedMessage(viewPoint: Long, @Nullable shouldAnimateMessage: BaseMessage)
Content copied to clipboard
Moves the screen to the focused message, based on the created timestamp of message.
Link copied to clipboard
Handles a new channel when data has changed.
Link copied to clipboard
open fun notifyDataSetChanged( @NonNull messageList: List<BaseMessage>, @NonNull channel: GroupChannel, @Nullable callback: OnMessageListUpdateHandler)
Content copied to clipboard
Handles the data needed to draw the message list has changed.
Link copied to clipboard
After the messages are updated, calculate the current position and re-calculate the position of the scroll.
Link copied to clipboard
After receiving the message from another user, handle the necessary tasks at this component.
Link copied to clipboard
After updating the typing indicator, determines whether to scroll to the bottom.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open fun onEmojiReactionMoreButtonClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the button to see more emojis on the message is clicked.
Link copied to clipboard
protected open fun onFeedbackRatingClicked(@NonNull message: BaseMessage, @NonNull rating: FeedbackRating)
Content copied to clipboard
Called when the feedback rating of the message is clicked.
Link copied to clipboard
protected open fun onMessageClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the item of the message list is clicked.
Link copied to clipboard
protected open fun onMessageLongClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the item of the message list is long-clicked.
Link copied to clipboard
protected open fun onMessageMentionClicked( @NonNull view: View, position: Int, @NonNull user: User)
Content copied to clipboard
Called when the mentioned user of the message is clicked.
Link copied to clipboard
protected open fun onMessageProfileClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the profile view of the message is clicked.
Link copied to clipboard
protected open fun onMessageProfileLongClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the profile view of the message is long-clicked.
Link copied to clipboard
Called when the tooltip view is clicked.
Link copied to clipboard
Called when the button to scroll to the bottom is clicked.
Link copied to clipboard
protected open fun onScrollFirstButtonClicked(@NonNull view: View): Boolean
Content copied to clipboard
Called when the button to scroll to the first position is clicked.
Link copied to clipboard
Scrolls to the bottom of the message list.
Link copied to clipboard
Scrolls to the first position of the recycler view.
Link copied to clipboard
open fun setOnEmojiReactionClickListener(@Nullable emojiReactionClickListener: OnEmojiReactionClickListener)
Content copied to clipboard
Register a callback to be invoked when the emoji reaction of the message is clicked.
Link copied to clipboard
open fun setOnEmojiReactionLongClickListener(@Nullable emojiReactionLongClickListener: OnEmojiReactionLongClickListener)
Content copied to clipboard
Register a callback to be invoked when the emoji reaction of the message is long-clicked.
Link copied to clipboard
open fun setOnEmojiReactionMoreButtonClickListener(@Nullable emojiReactionMoreButtonClickListener: OnItemClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the button to see more emojis on the message is clicked.
Link copied to clipboard
open fun setOnFeedbackRatingClickListener(@Nullable feedbackRatingClickListener: OnFeedbackRatingClickListener)
Content copied to clipboard
Register a callback to be invoked when the feedback rating of the message is clicked.
Link copied to clipboard
open fun setOnMessageClickListener(@Nullable messageClickListener: OnItemClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the message is clicked.
Link copied to clipboard
open fun setOnMessageLongClickListener(@Nullable messageLongClickListener: OnItemLongClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the message is long-clicked.
Link copied to clipboard
open fun setOnMessageMentionClickListener(@Nullable messageMentionClickListener: OnItemClickListener<User>)
Content copied to clipboard
Register a callback to be invoked when the mentioned user of the message is clicked.
Link copied to clipboard
open fun setOnMessageProfileClickListener(@Nullable messageProfileClickListener: OnItemClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the profile view of the message is clicked.
Link copied to clipboard
open fun setOnMessageProfileLongClickListener(@Nullable messageProfileLongClickListener: OnItemLongClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the profile view of the message is long-clicked.
Link copied to clipboard
Content copied to clipboard
Register a callback to be invoked when the button to scroll to the bottom is clicked.
Link copied to clipboard
open fun setOnScrollFirstButtonClickListener(@Nullable scrollFirstButtonClickListener: OnConsumableClickListener)
Content copied to clipboard
Register a callback to be invoked when the button to scroll to the first position is clicked.
Link copied to clipboard
open fun setOnTooltipClickListener(@Nullable tooltipClickListener: View.OnClickListener)
Content copied to clipboard
Register a callback to be invoked when the tooltip view is clicked.
Link copied to clipboard
open fun setPagedDataLoader(@NonNull pagedDataLoader: OnPagedDataLoader<List<BaseMessage>>)
Content copied to clipboard
Sets the paged data loader for message list.